package com.brush.brushcommon.common.sys.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.brush.brushcommon.common.BasicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户评论表
 * </p>
 *
 * @author debug
 * @since 2024-07-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_user_message")
@Schema(name = "UserMessage对象", description = "用户评论表")
public class UserMessage extends BasicEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "评论时间")
    private LocalDateTime contentTime;

    @Schema(description = "评论所属用户的id")
    private Long userId;

    @Schema(description = "点赞次数")
    private Long commLikeCount;

    @Schema(description = "顶级评论的id")
    private Long rootcommentId;

    @Schema(description = "回复目标评论id")
    private Long tocommentId;

    @Schema(description = "题目id")
    private Long topicId;

    @Schema(description = "创建人")
    private String gmtFounder;
}
